using System.Collections.Generic;
using CodePlex.TfsLibrary.ClientEngine;

namespace CodePlex.UnitTestUtility
{
    public class StubIgnoreList : IIgnoreList
    {
        public List<string> Ignores = new List<string>();

        public string IgnoreFilename
        {
            get { return null; }
            set { }
        }

        public bool IsIgnored(string path)
        {
            foreach (string ignore in Ignores)
                if (string.Compare(path, ignore, true) == 0)
                    return true;

            return false;
        }
    }
}